package com.qiezi.user.facade.impl;

import com.qiezi.common.exception.MessageException;
import com.qiezi.common.response.CommonResponse;
import com.qiezi.user.facade.IUserFacade;
import com.qiezi.user.request.RegistRequest;
import com.qiezi.user.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class UserFacadeImpl implements IUserFacade {
    @Autowired
    private IUserService userService;

    @Override
    public CommonResponse registUser(RegistRequest registReqeust) throws MessageException {
        userService.registUser(registReqeust);
        return new CommonResponse();
    }
}
